package com.forezp.thinking.chapter14.proxy;

/**
 * Created by forezp on 2017/12/4.
 */
public class SimpleProxyDemo {

    public static void consume(Interface i){
        i.doSomething();
        i.doSomethingElse("xs");
    }

    public static void main(String[] args) {
        consume(new RealObject());
        consume(new SimpleProxy(new RealObject()));
    }
}
